import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
      path:'/',
      component: ()=>import('../views/Layout/Layout.vue'),
      children:[{
        path:'',
        redirect: '/home'
      },{
        path:'/home',
        component: () => import('../views/Home/Home.vue')
      },{
        path: '/wa',
        component: () => import('../views/wa/wa.vue'),
      },{
        path: '/video',
        component: () => import('../views/Video/Video.vue'),
      },{
        path: '/my',
        name: 'my',
        component: () => import('../views/My/My.vue'),
      }]
    },
    {
      path:'/login',
      name:'login',
      component: ()=>import('../views/Login/Login.vue')
    },

]

const router = new VueRouter({
  routes
})

export default router
